package b.g.b.h;

import b.g.b.h.l.c;
import b.g.b.h.l.f;
import b.g.b.h.l.k;
import b.g.b.h.l.m;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;

/* compiled from: ConstraintWidget */
public class d {
    public boolean A = false;
    public int B = 0;
    public int C = 0;
    public c D = new c(this, b.g.b.h.c.a.LEFT);
    public c E = new c(this, b.g.b.h.c.a.TOP);
    public c F = new c(this, b.g.b.h.c.a.RIGHT);
    public c G = new c(this, b.g.b.h.c.a.BOTTOM);
    public c H = new c(this, b.g.b.h.c.a.BASELINE);
    public c I = new c(this, b.g.b.h.c.a.CENTER_X);
    public c J = new c(this, b.g.b.h.c.a.CENTER_Y);
    public c K = new c(this, b.g.b.h.c.a.CENTER);
    public c[] L;
    public ArrayList<c> M;
    public boolean[] N;
    public a[] O;
    public d P;
    public int Q;
    public int R;
    public float S;
    public int T;
    public int U;
    public int V;
    public int W;
    public int X;
    public int Y;
    public float Z;
    public boolean a = false;
    public float a0;
    public c b;
    public Object b0;
    public c c;
    public int c0;
    public k d = null;
    public String d0;
    public m e = null;
    public int e0;
    public boolean[] f = new boolean[]{true, true};
    public int f0;
    public boolean g = true;
    public float[] g0;
    public boolean h = false;
    public d[] h0;
    public boolean i = false;
    public d[] i0;
    public int j = -1;
    public int j0;
    public int k = -1;
    public int k0;
    public int l = 0;
    public int m = 0;
    public int[] n = new int[2];
    public int o = 0;
    public int p = 0;
    public float q = 1.0f;
    public int r = 0;
    public int s = 0;
    public float t = 1.0f;
    public int u = -1;
    public float v = 1.0f;
    public int[] w = new int[]{Integer.MAX_VALUE, Integer.MAX_VALUE};
    public float x = 0.0f;
    public boolean y = false;
    public boolean z;

    /* compiled from: ConstraintWidget */
    public enum a {
        FIXED,
        WRAP_CONTENT,
        MATCH_CONSTRAINT,
        MATCH_PARENT
    }

    public d() {
        this.L = new c[]{r6, r8, r7, r9, r10, r11};
        ArrayList arrayList = new ArrayList();
        this.M = arrayList;
        this.N = new boolean[2];
        r7 = new a[2];
        a aVar = a.FIXED;
        r7[0] = aVar;
        r7[1] = aVar;
        this.O = r7;
        this.P = null;
        this.Q = 0;
        this.R = 0;
        this.S = 0.0f;
        this.T = -1;
        this.U = 0;
        this.V = 0;
        this.W = 0;
        this.Z = 0.5f;
        this.a0 = 0.5f;
        this.c0 = 0;
        this.d0 = null;
        this.e0 = 0;
        this.f0 = 0;
        this.g0 = new float[]{-1.0f, -1.0f};
        this.h0 = new d[]{null, null};
        this.i0 = new d[]{null, null};
        this.j0 = -1;
        this.k0 = -1;
        arrayList.add(this.D);
        this.M.add(this.E);
        this.M.add(this.F);
        this.M.add(this.G);
        this.M.add(this.I);
        this.M.add(this.J);
        this.M.add(this.K);
        this.M.add(this.H);
    }

    public boolean A() {
        return this.i || (this.E.c && this.G.c);
    }

    public void B() {
        this.D.h();
        this.E.h();
        this.F.h();
        this.G.h();
        this.H.h();
        this.I.h();
        this.J.h();
        this.K.h();
        this.P = null;
        this.x = 0.0f;
        this.Q = 0;
        this.R = 0;
        this.S = 0.0f;
        this.T = -1;
        this.U = 0;
        this.V = 0;
        this.W = 0;
        this.X = 0;
        this.Y = 0;
        this.Z = 0.5f;
        this.a0 = 0.5f;
        a[] aVarArr = this.O;
        a aVar = a.FIXED;
        aVarArr[0] = aVar;
        aVarArr[1] = aVar;
        this.b0 = null;
        this.c0 = 0;
        this.e0 = 0;
        this.f0 = 0;
        float[] fArr = this.g0;
        fArr[0] = -1.0f;
        fArr[1] = -1.0f;
        this.j = -1;
        this.k = -1;
        int[] iArr = this.w;
        iArr[0] = Integer.MAX_VALUE;
        iArr[1] = Integer.MAX_VALUE;
        this.l = 0;
        this.m = 0;
        this.q = 1.0f;
        this.t = 1.0f;
        this.p = Integer.MAX_VALUE;
        this.s = Integer.MAX_VALUE;
        this.o = 0;
        this.r = 0;
        this.u = -1;
        this.v = 1.0f;
        boolean[] zArr = this.f;
        zArr[0] = true;
        zArr[1] = true;
        this.A = false;
        zArr = this.N;
        zArr[0] = false;
        zArr[1] = false;
        this.g = true;
    }

    public void C() {
        this.h = false;
        this.i = false;
        int size = this.M.size();
        for (int i = 0; i < size; i++) {
            c cVar = (c) this.M.get(i);
            cVar.c = false;
            cVar.b = 0;
        }
    }

    public void D(b.g.b.c cVar) {
        this.D.i();
        this.E.i();
        this.F.i();
        this.G.i();
        this.H.i();
        this.K.i();
        this.I.i();
        this.J.i();
    }

    public void E(int i) {
        this.W = i;
        this.y = i > 0;
    }

    public void F(int i, int i2) {
        c cVar = this.D;
        cVar.b = i;
        cVar.c = true;
        cVar = this.F;
        cVar.b = i2;
        cVar.c = true;
        this.U = i;
        this.Q = i2 - i;
        this.h = true;
    }

    public void G(int i, int i2) {
        c cVar = this.E;
        cVar.b = i;
        cVar.c = true;
        cVar = this.G;
        cVar.b = i2;
        cVar.c = true;
        this.V = i;
        this.R = i2 - i;
        if (this.y) {
            this.H.j(i + this.W);
        }
        this.i = true;
    }

    public void H(int i) {
        this.R = i;
        int i2 = this.Y;
        if (i < i2) {
            this.R = i2;
        }
    }

    public void I(a aVar) {
        this.O[0] = aVar;
    }

    public void J(int i) {
        if (i < 0) {
            this.Y = 0;
        } else {
            this.Y = i;
        }
    }

    public void K(int i) {
        if (i < 0) {
            this.X = 0;
        } else {
            this.X = i;
        }
    }

    public void L(a aVar) {
        this.O[1] = aVar;
    }

    public void M(int i) {
        this.Q = i;
        int i2 = this.X;
        if (i < i2) {
            this.Q = i2;
        }
    }

    public void N(boolean z, boolean z2) {
        a aVar = a.FIXED;
        k kVar = this.d;
        int i = z & kVar.g;
        m mVar = this.e;
        int i2 = z2 & mVar.g;
        int i3 = kVar.h.g;
        int i4 = mVar.h.g;
        int i5 = kVar.i.g;
        int i6 = mVar.i.g;
        int i7 = i6 - i4;
        if (i5 - i3 < 0 || i7 < 0 || i3 == Integer.MIN_VALUE || i3 == Integer.MAX_VALUE || i4 == Integer.MIN_VALUE || i4 == Integer.MAX_VALUE || i5 == Integer.MIN_VALUE || i5 == Integer.MAX_VALUE || i6 == Integer.MIN_VALUE || i6 == Integer.MAX_VALUE) {
            i5 = 0;
            i6 = 0;
            i3 = 0;
            i4 = 0;
        }
        i5 -= i3;
        i6 -= i4;
        if (i != 0) {
            this.U = i3;
        }
        if (i2 != 0) {
            this.V = i4;
        }
        if (this.c0 == 8) {
            this.Q = 0;
            this.R = 0;
            return;
        }
        if (i != 0) {
            if (this.O[0] == aVar) {
                i = this.Q;
                if (i5 < i) {
                    i5 = i;
                }
            }
            this.Q = i5;
            i = this.X;
            if (i5 < i) {
                this.Q = i;
            }
        }
        if (i2 != 0) {
            if (this.O[1] == aVar) {
                i = this.R;
                if (i6 < i) {
                    i6 = i;
                }
            }
            this.R = i6;
            i = this.Y;
            if (i6 < i) {
                this.R = i;
            }
        }
    }

    public void O(b.g.b.d dVar, boolean z) {
        f fVar;
        int o = dVar.o(this.D);
        int o2 = dVar.o(this.E);
        int o3 = dVar.o(this.F);
        int o4 = dVar.o(this.G);
        if (z) {
            k kVar = this.d;
            if (kVar != null) {
                f fVar2 = kVar.h;
                if (fVar2.j) {
                    fVar = kVar.i;
                    if (fVar.j) {
                        o = fVar2.g;
                        o3 = fVar.g;
                    }
                }
            }
        }
        if (z) {
            m mVar = this.e;
            if (mVar != null) {
                fVar = mVar.h;
                if (fVar.j) {
                    f fVar3 = mVar.i;
                    if (fVar3.j) {
                        o2 = fVar.g;
                        o4 = fVar3.g;
                    }
                }
            }
        }
        int i = o4 - o2;
        if (o3 - o < 0 || i < 0 || o == Integer.MIN_VALUE || o == Integer.MAX_VALUE || o2 == Integer.MIN_VALUE || o2 == Integer.MAX_VALUE || o3 == Integer.MIN_VALUE || o3 == Integer.MAX_VALUE || o4 == Integer.MIN_VALUE || o4 == Integer.MAX_VALUE) {
            o4 = 0;
            o = 0;
            o2 = 0;
            o3 = 0;
        }
        o3 -= o;
        o4 -= o2;
        this.U = o;
        this.V = o2;
        if (this.c0 == 8) {
            this.Q = 0;
            this.R = 0;
            return;
        }
        int i2;
        a[] aVarArr = this.O;
        a aVar = aVarArr[0];
        a aVar2 = a.FIXED;
        if (aVar == aVar2) {
            o = this.Q;
            if (o3 < o) {
                o3 = o;
            }
        }
        if (aVarArr[1] == aVar2) {
            i2 = this.R;
            if (o4 < i2) {
                o4 = i2;
            }
        }
        this.Q = o3;
        this.R = o4;
        i2 = this.Y;
        if (o4 < i2) {
            this.R = i2;
        }
        o4 = this.X;
        if (o3 < o4) {
            this.Q = o4;
        }
    }

    public void b(e eVar, b.g.b.d dVar, HashSet<d> hashSet, int i, boolean z) {
        if (z) {
            if (hashSet.contains(this)) {
                i.a(eVar, dVar, this);
                hashSet.remove(this);
                d(dVar, eVar.Y(64));
            } else {
                return;
            }
        }
        HashSet hashSet2;
        Iterator it;
        if (i == 0) {
            hashSet2 = this.D.a;
            if (hashSet2 != null) {
                it = hashSet2.iterator();
                while (it.hasNext()) {
                    ((c) it.next()).d.b(eVar, dVar, hashSet, i, true);
                }
            }
            hashSet2 = this.F.a;
            if (hashSet2 != null) {
                it = hashSet2.iterator();
                while (it.hasNext()) {
                    ((c) it.next()).d.b(eVar, dVar, hashSet, i, true);
                }
            }
        } else {
            hashSet2 = this.E.a;
            if (hashSet2 != null) {
                it = hashSet2.iterator();
                while (it.hasNext()) {
                    ((c) it.next()).d.b(eVar, dVar, hashSet, i, true);
                }
            }
            hashSet2 = this.G.a;
            if (hashSet2 != null) {
                it = hashSet2.iterator();
                while (it.hasNext()) {
                    ((c) it.next()).d.b(eVar, dVar, hashSet, i, true);
                }
            }
            hashSet2 = this.H.a;
            if (hashSet2 != null) {
                it = hashSet2.iterator();
                while (it.hasNext()) {
                    ((c) it.next()).d.b(eVar, dVar, hashSet, i, true);
                }
            }
        }
    }

    public boolean c() {
        return (this instanceof j) || (this instanceof f);
    }

    /* JADX WARNING: Removed duplicated region for block: B:346:0x05c1  */
    /* JADX WARNING: Removed duplicated region for block: B:345:0x05be  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:248:0x03a8  */
    /* JADX WARNING: Removed duplicated region for block: B:247:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x03c7  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0420  */
    /* JADX WARNING: Removed duplicated region for block: B:272:0x0418  */
    /* JADX WARNING: Removed duplicated region for block: B:277:0x042e  */
    /* JADX WARNING: Removed duplicated region for block: B:276:0x0426  */
    /* JADX WARNING: Removed duplicated region for block: B:281:0x0451  */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x044e  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:235:0x0389  */
    /* JADX WARNING: Removed duplicated region for block: B:242:0x039c  */
    /* JADX WARNING: Removed duplicated region for block: B:247:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:248:0x03a8  */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x03c7  */
    /* JADX WARNING: Removed duplicated region for block: B:272:0x0418  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0420  */
    /* JADX WARNING: Removed duplicated region for block: B:276:0x0426  */
    /* JADX WARNING: Removed duplicated region for block: B:277:0x042e  */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x044e  */
    /* JADX WARNING: Removed duplicated region for block: B:281:0x0451  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:232:0x0384  */
    /* JADX WARNING: Removed duplicated region for block: B:228:0x037a  */
    /* JADX WARNING: Removed duplicated region for block: B:235:0x0389  */
    /* JADX WARNING: Removed duplicated region for block: B:242:0x039c  */
    /* JADX WARNING: Removed duplicated region for block: B:248:0x03a8  */
    /* JADX WARNING: Removed duplicated region for block: B:247:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x03c7  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0420  */
    /* JADX WARNING: Removed duplicated region for block: B:272:0x0418  */
    /* JADX WARNING: Removed duplicated region for block: B:277:0x042e  */
    /* JADX WARNING: Removed duplicated region for block: B:276:0x0426  */
    /* JADX WARNING: Removed duplicated region for block: B:281:0x0451  */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x044e  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:228:0x037a  */
    /* JADX WARNING: Removed duplicated region for block: B:232:0x0384  */
    /* JADX WARNING: Removed duplicated region for block: B:235:0x0389  */
    /* JADX WARNING: Removed duplicated region for block: B:242:0x039c  */
    /* JADX WARNING: Removed duplicated region for block: B:247:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:248:0x03a8  */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x03c7  */
    /* JADX WARNING: Removed duplicated region for block: B:272:0x0418  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0420  */
    /* JADX WARNING: Removed duplicated region for block: B:276:0x0426  */
    /* JADX WARNING: Removed duplicated region for block: B:277:0x042e  */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x044e  */
    /* JADX WARNING: Removed duplicated region for block: B:281:0x0451  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:232:0x0384  */
    /* JADX WARNING: Removed duplicated region for block: B:228:0x037a  */
    /* JADX WARNING: Removed duplicated region for block: B:235:0x0389  */
    /* JADX WARNING: Removed duplicated region for block: B:242:0x039c  */
    /* JADX WARNING: Removed duplicated region for block: B:248:0x03a8  */
    /* JADX WARNING: Removed duplicated region for block: B:247:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x03c7  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0420  */
    /* JADX WARNING: Removed duplicated region for block: B:272:0x0418  */
    /* JADX WARNING: Removed duplicated region for block: B:277:0x042e  */
    /* JADX WARNING: Removed duplicated region for block: B:276:0x0426  */
    /* JADX WARNING: Removed duplicated region for block: B:281:0x0451  */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x044e  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:228:0x037a  */
    /* JADX WARNING: Removed duplicated region for block: B:232:0x0384  */
    /* JADX WARNING: Removed duplicated region for block: B:235:0x0389  */
    /* JADX WARNING: Removed duplicated region for block: B:242:0x039c  */
    /* JADX WARNING: Removed duplicated region for block: B:247:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:248:0x03a8  */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x03c7  */
    /* JADX WARNING: Removed duplicated region for block: B:272:0x0418  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0420  */
    /* JADX WARNING: Removed duplicated region for block: B:276:0x0426  */
    /* JADX WARNING: Removed duplicated region for block: B:277:0x042e  */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x044e  */
    /* JADX WARNING: Removed duplicated region for block: B:281:0x0451  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    /* JADX WARNING: Removed duplicated region for block: B:232:0x0384  */
    /* JADX WARNING: Removed duplicated region for block: B:228:0x037a  */
    /* JADX WARNING: Removed duplicated region for block: B:235:0x0389  */
    /* JADX WARNING: Removed duplicated region for block: B:242:0x039c  */
    /* JADX WARNING: Removed duplicated region for block: B:248:0x03a8  */
    /* JADX WARNING: Removed duplicated region for block: B:247:0x03a5  */
    /* JADX WARNING: Removed duplicated region for block: B:254:0x03c7  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0420  */
    /* JADX WARNING: Removed duplicated region for block: B:272:0x0418  */
    /* JADX WARNING: Removed duplicated region for block: B:277:0x042e  */
    /* JADX WARNING: Removed duplicated region for block: B:276:0x0426  */
    /* JADX WARNING: Removed duplicated region for block: B:281:0x0451  */
    /* JADX WARNING: Removed duplicated region for block: B:280:0x044e  */
    /* JADX WARNING: Removed duplicated region for block: B:303:0x051c  */
    /* JADX WARNING: Removed duplicated region for block: B:286:0x04b8  */
    /* JADX WARNING: Removed duplicated region for block: B:307:0x0530  */
    /* JADX WARNING: Removed duplicated region for block: B:308:0x0532  */
    /* JADX WARNING: Removed duplicated region for block: B:310:0x0535  */
    /* JADX WARNING: Removed duplicated region for block: B:350:0x0607  */
    /* JADX WARNING: Removed duplicated region for block: B:354:0x0632  */
    /* JADX WARNING: Removed duplicated region for block: B:357:0x063c  */
    public void d(b.g.b.d r54, boolean r55) {
        /*
        r53 = this;
        r15 = r53;
        r14 = r54;
        r13 = b.g.b.h.d.a.WRAP_CONTENT;
        r0 = r15.D;
        r12 = r14.l(r0);
        r0 = r15.F;
        r11 = r14.l(r0);
        r0 = r15.E;
        r10 = r14.l(r0);
        r0 = r15.G;
        r9 = r14.l(r0);
        r0 = r15.H;
        r8 = r14.l(r0);
        r0 = r15.P;
        r7 = 1;
        r6 = 0;
        if (r0 == 0) goto L_0x0045;
    L_0x002a:
        if (r0 == 0) goto L_0x0034;
    L_0x002c:
        r1 = r0.O;
        r1 = r1[r6];
        if (r1 != r13) goto L_0x0034;
    L_0x0032:
        r1 = 1;
        goto L_0x0035;
    L_0x0034:
        r1 = 0;
    L_0x0035:
        if (r0 == 0) goto L_0x003f;
    L_0x0037:
        r0 = r0.O;
        r0 = r0[r7];
        if (r0 != r13) goto L_0x003f;
    L_0x003d:
        r0 = 1;
        goto L_0x0040;
    L_0x003f:
        r0 = 0;
    L_0x0040:
        r28 = r0;
        r29 = r1;
        goto L_0x0049;
    L_0x0045:
        r28 = 0;
        r29 = 0;
    L_0x0049:
        r0 = r15.c0;
        r5 = 8;
        if (r0 != r5) goto L_0x0079;
    L_0x004f:
        r0 = r15.M;
        r0 = r0.size();
        r1 = 0;
    L_0x0056:
        if (r1 >= r0) goto L_0x006b;
    L_0x0058:
        r2 = r15.M;
        r2 = r2.get(r1);
        r2 = (b.g.b.h.c) r2;
        r2 = r2.f();
        if (r2 == 0) goto L_0x0068;
    L_0x0066:
        r0 = 1;
        goto L_0x006c;
    L_0x0068:
        r1 = r1 + 1;
        goto L_0x0056;
    L_0x006b:
        r0 = 0;
    L_0x006c:
        if (r0 != 0) goto L_0x0079;
    L_0x006e:
        r0 = r15.N;
        r1 = r0[r6];
        if (r1 != 0) goto L_0x0079;
    L_0x0074:
        r0 = r0[r7];
        if (r0 != 0) goto L_0x0079;
    L_0x0078:
        return;
    L_0x0079:
        r0 = r15.h;
        if (r0 != 0) goto L_0x0081;
    L_0x007d:
        r1 = r15.i;
        if (r1 == 0) goto L_0x00e2;
    L_0x0081:
        if (r0 == 0) goto L_0x00a2;
    L_0x0083:
        r0 = r15.U;
        r14.e(r12, r0);
        r0 = r15.U;
        r1 = r15.Q;
        r0 = r0 + r1;
        r14.e(r11, r0);
        if (r29 == 0) goto L_0x00a2;
    L_0x0092:
        r0 = r15.P;
        if (r0 == 0) goto L_0x00a2;
    L_0x0096:
        r0 = (b.g.b.h.e) r0;
        r1 = r15.D;
        r0.U(r1);
        r1 = r15.F;
        r0.S(r1);
    L_0x00a2:
        r0 = r15.i;
        if (r0 == 0) goto L_0x00d5;
    L_0x00a6:
        r0 = r15.V;
        r14.e(r10, r0);
        r0 = r15.V;
        r1 = r15.R;
        r0 = r0 + r1;
        r14.e(r9, r0);
        r0 = r15.H;
        r0 = r0.f();
        if (r0 == 0) goto L_0x00c3;
    L_0x00bb:
        r0 = r15.V;
        r1 = r15.W;
        r0 = r0 + r1;
        r14.e(r8, r0);
    L_0x00c3:
        if (r28 == 0) goto L_0x00d5;
    L_0x00c5:
        r0 = r15.P;
        if (r0 == 0) goto L_0x00d5;
    L_0x00c9:
        r0 = (b.g.b.h.e) r0;
        r1 = r15.E;
        r0.U(r1);
        r1 = r15.G;
        r0.T(r1);
    L_0x00d5:
        r0 = r15.h;
        if (r0 == 0) goto L_0x00e2;
    L_0x00d9:
        r0 = r15.i;
        if (r0 == 0) goto L_0x00e2;
    L_0x00dd:
        r15.h = r6;
        r15.i = r6;
        return;
    L_0x00e2:
        if (r55 == 0) goto L_0x0168;
    L_0x00e4:
        r0 = r15.d;
        if (r0 == 0) goto L_0x0168;
    L_0x00e8:
        r1 = r15.e;
        if (r1 == 0) goto L_0x0168;
    L_0x00ec:
        r2 = r0.h;
        r3 = r2.j;
        if (r3 == 0) goto L_0x0168;
    L_0x00f2:
        r0 = r0.i;
        r0 = r0.j;
        if (r0 == 0) goto L_0x0168;
    L_0x00f8:
        r0 = r1.h;
        r0 = r0.j;
        if (r0 == 0) goto L_0x0168;
    L_0x00fe:
        r0 = r1.i;
        r0 = r0.j;
        if (r0 == 0) goto L_0x0168;
    L_0x0104:
        r0 = r2.g;
        r14.e(r12, r0);
        r0 = r15.d;
        r0 = r0.i;
        r0 = r0.g;
        r14.e(r11, r0);
        r0 = r15.e;
        r0 = r0.h;
        r0 = r0.g;
        r14.e(r10, r0);
        r0 = r15.e;
        r0 = r0.i;
        r0 = r0.g;
        r14.e(r9, r0);
        r0 = r15.e;
        r0 = r0.k;
        r0 = r0.g;
        r14.e(r8, r0);
        r0 = r15.P;
        if (r0 == 0) goto L_0x0163;
    L_0x0131:
        if (r29 == 0) goto L_0x014a;
    L_0x0133:
        r0 = r15.f;
        r0 = r0[r6];
        if (r0 == 0) goto L_0x014a;
    L_0x0139:
        r0 = r53.w();
        if (r0 != 0) goto L_0x014a;
    L_0x013f:
        r0 = r15.P;
        r0 = r0.F;
        r0 = r14.l(r0);
        r14.f(r0, r11, r6, r5);
    L_0x014a:
        if (r28 == 0) goto L_0x0163;
    L_0x014c:
        r0 = r15.f;
        r0 = r0[r7];
        if (r0 == 0) goto L_0x0163;
    L_0x0152:
        r0 = r53.x();
        if (r0 != 0) goto L_0x0163;
    L_0x0158:
        r0 = r15.P;
        r0 = r0.G;
        r0 = r14.l(r0);
        r14.f(r0, r9, r6, r5);
    L_0x0163:
        r15.h = r6;
        r15.i = r6;
        return;
    L_0x0168:
        r0 = r15.P;
        if (r0 == 0) goto L_0x01d9;
    L_0x016c:
        r0 = r15.v(r6);
        if (r0 == 0) goto L_0x017b;
    L_0x0172:
        r0 = r15.P;
        r0 = (b.g.b.h.e) r0;
        r0.Q(r15, r6);
        r0 = 1;
        goto L_0x017f;
    L_0x017b:
        r0 = r53.w();
    L_0x017f:
        r1 = r15.v(r7);
        if (r1 == 0) goto L_0x018e;
    L_0x0185:
        r1 = r15.P;
        r1 = (b.g.b.h.e) r1;
        r1.Q(r15, r7);
        r1 = 1;
        goto L_0x0192;
    L_0x018e:
        r1 = r53.x();
    L_0x0192:
        if (r0 != 0) goto L_0x01b1;
    L_0x0194:
        if (r29 == 0) goto L_0x01b1;
    L_0x0196:
        r2 = r15.c0;
        if (r2 == r5) goto L_0x01b1;
    L_0x019a:
        r2 = r15.D;
        r2 = r2.f;
        if (r2 != 0) goto L_0x01b1;
    L_0x01a0:
        r2 = r15.F;
        r2 = r2.f;
        if (r2 != 0) goto L_0x01b1;
    L_0x01a6:
        r2 = r15.P;
        r2 = r2.F;
        r2 = r14.l(r2);
        r14.f(r2, r11, r6, r7);
    L_0x01b1:
        if (r1 != 0) goto L_0x01d4;
    L_0x01b3:
        if (r28 == 0) goto L_0x01d4;
    L_0x01b5:
        r2 = r15.c0;
        if (r2 == r5) goto L_0x01d4;
    L_0x01b9:
        r2 = r15.E;
        r2 = r2.f;
        if (r2 != 0) goto L_0x01d4;
    L_0x01bf:
        r2 = r15.G;
        r2 = r2.f;
        if (r2 != 0) goto L_0x01d4;
    L_0x01c5:
        r2 = r15.H;
        if (r2 != 0) goto L_0x01d4;
    L_0x01c9:
        r2 = r15.P;
        r2 = r2.G;
        r2 = r14.l(r2);
        r14.f(r2, r9, r6, r7);
    L_0x01d4:
        r31 = r0;
        r30 = r1;
        goto L_0x01dd;
    L_0x01d9:
        r30 = 0;
        r31 = 0;
    L_0x01dd:
        r0 = r15.Q;
        r1 = r15.X;
        if (r0 >= r1) goto L_0x01e4;
    L_0x01e3:
        goto L_0x01e5;
    L_0x01e4:
        r1 = r0;
    L_0x01e5:
        r2 = r15.R;
        r3 = r15.Y;
        if (r2 >= r3) goto L_0x01ec;
    L_0x01eb:
        goto L_0x01ed;
    L_0x01ec:
        r3 = r2;
    L_0x01ed:
        r4 = r15.O;
        r5 = r4[r6];
        r6 = b.g.b.h.d.a.MATCH_CONSTRAINT;
        r18 = r1;
        if (r5 == r6) goto L_0x01f9;
    L_0x01f7:
        r5 = 1;
        goto L_0x01fa;
    L_0x01f9:
        r5 = 0;
    L_0x01fa:
        r1 = r4[r7];
        if (r1 == r6) goto L_0x0200;
    L_0x01fe:
        r1 = 1;
        goto L_0x0201;
    L_0x0200:
        r1 = 0;
    L_0x0201:
        r7 = r15.T;
        r15.u = r7;
        r20 = r3;
        r3 = r15.S;
        r15.v = r3;
        r21 = r8;
        r8 = r15.l;
        r22 = r9;
        r9 = r15.m;
        r23 = 0;
        r24 = 4;
        r27 = r10;
        r23 = (r3 > r23 ? 1 : (r3 == r23 ? 0 : -1));
        if (r23 <= 0) goto L_0x0363;
    L_0x021d:
        r10 = r15.c0;
        r32 = r11;
        r11 = 8;
        if (r10 == r11) goto L_0x0365;
    L_0x0225:
        r10 = 0;
        r11 = r4[r10];
        if (r11 != r6) goto L_0x022d;
    L_0x022a:
        if (r8 != 0) goto L_0x022d;
    L_0x022c:
        r8 = 3;
    L_0x022d:
        r11 = 1;
        r10 = r4[r11];
        if (r10 != r6) goto L_0x0235;
    L_0x0232:
        if (r9 != 0) goto L_0x0235;
    L_0x0234:
        r9 = 3;
    L_0x0235:
        r10 = 0;
        r11 = r4[r10];
        r26 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        if (r11 != r6) goto L_0x0302;
    L_0x023c:
        r11 = 1;
        r10 = r4[r11];
        if (r10 != r6) goto L_0x0302;
    L_0x0241:
        r10 = 3;
        if (r8 != r10) goto L_0x0302;
    L_0x0244:
        if (r9 != r10) goto L_0x0302;
    L_0x0246:
        r0 = -1;
        if (r7 != r0) goto L_0x025e;
    L_0x0249:
        if (r5 == 0) goto L_0x0251;
    L_0x024b:
        if (r1 != 0) goto L_0x0251;
    L_0x024d:
        r2 = 0;
        r15.u = r2;
        goto L_0x025e;
    L_0x0251:
        if (r5 != 0) goto L_0x025e;
    L_0x0253:
        if (r1 == 0) goto L_0x025e;
    L_0x0255:
        r1 = 1;
        r15.u = r1;
        if (r7 != r0) goto L_0x025e;
    L_0x025a:
        r0 = r26 / r3;
        r15.v = r0;
    L_0x025e:
        r0 = r15.u;
        if (r0 != 0) goto L_0x0276;
    L_0x0262:
        r0 = r15.E;
        r0 = r0.g();
        if (r0 == 0) goto L_0x0272;
    L_0x026a:
        r0 = r15.G;
        r0 = r0.g();
        if (r0 != 0) goto L_0x0276;
    L_0x0272:
        r0 = 1;
        r15.u = r0;
        goto L_0x028e;
    L_0x0276:
        r0 = 1;
        r1 = r15.u;
        if (r1 != r0) goto L_0x028e;
    L_0x027b:
        r0 = r15.D;
        r0 = r0.g();
        if (r0 == 0) goto L_0x028b;
    L_0x0283:
        r0 = r15.F;
        r0 = r0.g();
        if (r0 != 0) goto L_0x028e;
    L_0x028b:
        r0 = 0;
        r15.u = r0;
    L_0x028e:
        r0 = r15.u;
        r1 = -1;
        if (r0 != r1) goto L_0x02e0;
    L_0x0293:
        r0 = r15.E;
        r0 = r0.g();
        if (r0 == 0) goto L_0x02b3;
    L_0x029b:
        r0 = r15.G;
        r0 = r0.g();
        if (r0 == 0) goto L_0x02b3;
    L_0x02a3:
        r0 = r15.D;
        r0 = r0.g();
        if (r0 == 0) goto L_0x02b3;
    L_0x02ab:
        r0 = r15.F;
        r0 = r0.g();
        if (r0 != 0) goto L_0x02e0;
    L_0x02b3:
        r0 = r15.E;
        r0 = r0.g();
        if (r0 == 0) goto L_0x02c7;
    L_0x02bb:
        r0 = r15.G;
        r0 = r0.g();
        if (r0 == 0) goto L_0x02c7;
    L_0x02c3:
        r0 = 0;
        r15.u = r0;
        goto L_0x02e0;
    L_0x02c7:
        r0 = r15.D;
        r0 = r0.g();
        if (r0 == 0) goto L_0x02e0;
    L_0x02cf:
        r0 = r15.F;
        r0 = r0.g();
        if (r0 == 0) goto L_0x02e0;
    L_0x02d7:
        r0 = r15.v;
        r0 = r26 / r0;
        r15.v = r0;
        r0 = 1;
        r15.u = r0;
    L_0x02e0:
        r0 = r15.u;
        r1 = -1;
        if (r0 != r1) goto L_0x0356;
    L_0x02e5:
        r0 = r15.o;
        if (r0 <= 0) goto L_0x02f2;
    L_0x02e9:
        r1 = r15.r;
        if (r1 != 0) goto L_0x02f2;
    L_0x02ed:
        r1 = 0;
        r15.u = r1;
        goto L_0x0356;
    L_0x02f2:
        if (r0 != 0) goto L_0x0356;
    L_0x02f4:
        r0 = r15.r;
        if (r0 <= 0) goto L_0x0356;
    L_0x02f8:
        r0 = r15.v;
        r0 = r26 / r0;
        r15.v = r0;
        r0 = 1;
        r15.u = r0;
        goto L_0x0356;
    L_0x0302:
        r1 = 0;
        r5 = r4[r1];
        if (r5 != r6) goto L_0x0329;
    L_0x0307:
        r5 = 3;
        if (r8 != r5) goto L_0x0329;
    L_0x030a:
        r15.u = r1;
        r0 = (float) r2;
        r3 = r3 * r0;
        r1 = (int) r3;
        r2 = 1;
        r0 = r4[r2];
        if (r0 == r6) goto L_0x0320;
    L_0x0315:
        r35 = r9;
        r33 = r20;
        r17 = 0;
        r34 = 0;
        r36 = 4;
        goto L_0x0371;
    L_0x0320:
        r36 = r8;
        r35 = r9;
        r33 = r20;
        r17 = 0;
        goto L_0x0360;
    L_0x0329:
        r2 = 1;
        r1 = r4[r2];
        if (r1 != r6) goto L_0x0356;
    L_0x032e:
        r1 = 3;
        if (r9 != r1) goto L_0x0356;
    L_0x0331:
        r15.u = r2;
        r1 = -1;
        if (r7 != r1) goto L_0x033a;
    L_0x0336:
        r1 = r26 / r3;
        r15.v = r1;
    L_0x033a:
        r1 = r15.v;
        r0 = (float) r0;
        r1 = r1 * r0;
        r3 = (int) r1;
        r17 = 0;
        r0 = r4[r17];
        r33 = r3;
        r36 = r8;
        if (r0 == r6) goto L_0x0351;
    L_0x034a:
        r1 = r18;
        r34 = 0;
        r35 = 4;
        goto L_0x0371;
    L_0x0351:
        r35 = r9;
        r1 = r18;
        goto L_0x0360;
    L_0x0356:
        r17 = 0;
        r36 = r8;
        r35 = r9;
        r1 = r18;
        r33 = r20;
    L_0x0360:
        r34 = 1;
        goto L_0x0371;
    L_0x0363:
        r32 = r11;
    L_0x0365:
        r17 = 0;
        r36 = r8;
        r35 = r9;
        r1 = r18;
        r33 = r20;
        r34 = 0;
    L_0x0371:
        r0 = r15.n;
        r0[r17] = r36;
        r2 = 1;
        r0[r2] = r35;
        if (r34 == 0) goto L_0x0384;
    L_0x037a:
        r0 = r15.u;
        r2 = -1;
        if (r0 == 0) goto L_0x0381;
    L_0x037f:
        if (r0 != r2) goto L_0x0385;
    L_0x0381:
        r18 = 1;
        goto L_0x0387;
    L_0x0384:
        r2 = -1;
    L_0x0385:
        r18 = 0;
    L_0x0387:
        if (r34 == 0) goto L_0x0393;
    L_0x0389:
        r0 = r15.u;
        r3 = 1;
        if (r0 == r3) goto L_0x0390;
    L_0x038e:
        if (r0 != r2) goto L_0x0393;
    L_0x0390:
        r37 = 1;
        goto L_0x0395;
    L_0x0393:
        r37 = 0;
    L_0x0395:
        r0 = r15.O;
        r2 = 0;
        r0 = r0[r2];
        if (r0 != r13) goto L_0x03a2;
    L_0x039c:
        r0 = r15 instanceof b.g.b.h.e;
        if (r0 == 0) goto L_0x03a2;
    L_0x03a0:
        r9 = 1;
        goto L_0x03a3;
    L_0x03a2:
        r9 = 0;
    L_0x03a3:
        if (r9 == 0) goto L_0x03a8;
    L_0x03a5:
        r20 = 0;
        goto L_0x03aa;
    L_0x03a8:
        r20 = r1;
    L_0x03aa:
        r0 = r15.K;
        r0 = r0.g();
        r1 = 1;
        r38 = r0 ^ 1;
        r0 = r15.N;
        r2 = 0;
        r23 = r0[r2];
        r39 = r0[r1];
        r0 = r15.j;
        r11 = 2;
        r40 = 0;
        if (r0 == r11) goto L_0x04aa;
    L_0x03c1:
        r0 = r15.h;
        if (r0 != 0) goto L_0x04aa;
    L_0x03c5:
        if (r55 == 0) goto L_0x0410;
    L_0x03c7:
        r0 = r15.d;
        if (r0 == 0) goto L_0x0410;
    L_0x03cb:
        r1 = r0.h;
        r2 = r1.j;
        if (r2 == 0) goto L_0x0410;
    L_0x03d1:
        r0 = r0.i;
        r0 = r0.j;
        if (r0 != 0) goto L_0x03d8;
    L_0x03d7:
        goto L_0x0410;
    L_0x03d8:
        if (r55 == 0) goto L_0x04aa;
    L_0x03da:
        r0 = r1.g;
        r14.e(r12, r0);
        r0 = r15.d;
        r0 = r0.i;
        r0 = r0.g;
        r10 = r32;
        r14.e(r10, r0);
        r0 = r15.P;
        if (r0 == 0) goto L_0x040a;
    L_0x03ee:
        if (r29 == 0) goto L_0x040a;
    L_0x03f0:
        r0 = r15.f;
        r1 = 0;
        r0 = r0[r1];
        if (r0 == 0) goto L_0x040a;
    L_0x03f7:
        r0 = r53.w();
        if (r0 != 0) goto L_0x040a;
    L_0x03fd:
        r0 = r15.P;
        r0 = r0.F;
        r0 = r14.l(r0);
        r5 = 8;
        r14.f(r0, r10, r1, r5);
    L_0x040a:
        r48 = r6;
        r32 = r10;
        goto L_0x04ac;
    L_0x0410:
        r10 = r32;
        r5 = 8;
        r0 = r15.P;
        if (r0 == 0) goto L_0x0420;
    L_0x0418:
        r0 = r0.F;
        r0 = r14.l(r0);
        r7 = r0;
        goto L_0x0422;
    L_0x0420:
        r7 = r40;
    L_0x0422:
        r0 = r15.P;
        if (r0 == 0) goto L_0x042e;
    L_0x0426:
        r0 = r0.D;
        r0 = r14.l(r0);
        r8 = r0;
        goto L_0x0430;
    L_0x042e:
        r8 = r40;
    L_0x0430:
        r0 = r15.f;
        r16 = 0;
        r17 = r0[r16];
        r0 = r15.O;
        r32 = r0[r16];
        r4 = r15.D;
        r3 = r15.F;
        r1 = r15.U;
        r2 = r15.X;
        r5 = r15.w;
        r43 = r5[r16];
        r5 = r15.Z;
        r19 = 1;
        r0 = r0[r19];
        if (r0 != r6) goto L_0x0451;
    L_0x044e:
        r44 = 1;
        goto L_0x0453;
    L_0x0451:
        r44 = 0;
    L_0x0453:
        r0 = r15.o;
        r24 = r0;
        r0 = r15.p;
        r25 = r0;
        r0 = r15.q;
        r26 = r0;
        r0 = r53;
        r45 = r1;
        r1 = r54;
        r41 = r2;
        r2 = 1;
        r46 = r3;
        r3 = r29;
        r47 = r4;
        r4 = r28;
        r42 = r5;
        r5 = r17;
        r48 = r6;
        r6 = r8;
        r8 = 1;
        r49 = r21;
        r8 = r32;
        r50 = r22;
        r16 = r10;
        r51 = r27;
        r10 = r47;
        r32 = r16;
        r11 = r46;
        r46 = r12;
        r12 = r45;
        r52 = r13;
        r13 = r20;
        r14 = r41;
        r15 = r43;
        r16 = r42;
        r17 = r18;
        r18 = r44;
        r19 = r31;
        r20 = r30;
        r21 = r23;
        r22 = r36;
        r23 = r35;
        r27 = r38;
        r0.f(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23, r24, r25, r26, r27);
        goto L_0x04b6;
    L_0x04aa:
        r48 = r6;
    L_0x04ac:
        r46 = r12;
        r52 = r13;
        r49 = r21;
        r50 = r22;
        r51 = r27;
    L_0x04b6:
        if (r55 == 0) goto L_0x051c;
    L_0x04b8:
        r15 = r53;
        r0 = r15.e;
        if (r0 == 0) goto L_0x050f;
    L_0x04be:
        r1 = r0.h;
        r2 = r1.j;
        if (r2 == 0) goto L_0x050f;
    L_0x04c4:
        r0 = r0.i;
        r0 = r0.j;
        if (r0 == 0) goto L_0x050f;
    L_0x04ca:
        r0 = r1.g;
        r14 = r54;
        r13 = r51;
        r14.e(r13, r0);
        r0 = r15.e;
        r0 = r0.i;
        r0 = r0.g;
        r12 = r50;
        r14.e(r12, r0);
        r0 = r15.e;
        r0 = r0.k;
        r0 = r0.g;
        r1 = r49;
        r14.e(r1, r0);
        r0 = r15.P;
        if (r0 == 0) goto L_0x0509;
    L_0x04ed:
        if (r30 != 0) goto L_0x0509;
    L_0x04ef:
        if (r28 == 0) goto L_0x0509;
    L_0x04f1:
        r2 = r15.f;
        r11 = 1;
        r2 = r2[r11];
        if (r2 == 0) goto L_0x0505;
    L_0x04f8:
        r0 = r0.G;
        r0 = r14.l(r0);
        r2 = 8;
        r10 = 0;
        r14.f(r0, r12, r10, r2);
        goto L_0x050d;
    L_0x0505:
        r2 = 8;
        r10 = 0;
        goto L_0x050d;
    L_0x0509:
        r2 = 8;
        r10 = 0;
        r11 = 1;
    L_0x050d:
        r7 = 0;
        goto L_0x052b;
    L_0x050f:
        r14 = r54;
        r1 = r49;
        r12 = r50;
        r13 = r51;
        r2 = 8;
        r10 = 0;
        r11 = 1;
        goto L_0x052a;
    L_0x051c:
        r2 = 8;
        r10 = 0;
        r11 = 1;
        r15 = r53;
        r14 = r54;
        r1 = r49;
        r12 = r50;
        r13 = r51;
    L_0x052a:
        r7 = 1;
    L_0x052b:
        r0 = r15.k;
        r3 = 2;
        if (r0 != r3) goto L_0x0532;
    L_0x0530:
        r6 = 0;
        goto L_0x0533;
    L_0x0532:
        r6 = r7;
    L_0x0533:
        if (r6 == 0) goto L_0x0601;
    L_0x0535:
        r0 = r15.i;
        if (r0 != 0) goto L_0x0601;
    L_0x0539:
        r0 = r15.O;
        r0 = r0[r11];
        r3 = r52;
        if (r0 != r3) goto L_0x0547;
    L_0x0541:
        r0 = r15 instanceof b.g.b.h.e;
        if (r0 == 0) goto L_0x0547;
    L_0x0545:
        r9 = 1;
        goto L_0x0548;
    L_0x0547:
        r9 = 0;
    L_0x0548:
        if (r9 == 0) goto L_0x054c;
    L_0x054a:
        r33 = 0;
    L_0x054c:
        r0 = r15.P;
        if (r0 == 0) goto L_0x0558;
    L_0x0550:
        r0 = r0.G;
        r0 = r14.l(r0);
        r7 = r0;
        goto L_0x055a;
    L_0x0558:
        r7 = r40;
    L_0x055a:
        r0 = r15.P;
        if (r0 == 0) goto L_0x0566;
    L_0x055e:
        r0 = r0.E;
        r0 = r14.l(r0);
        r6 = r0;
        goto L_0x0568;
    L_0x0566:
        r6 = r40;
    L_0x0568:
        r0 = r15.W;
        if (r0 > 0) goto L_0x0570;
    L_0x056c:
        r3 = r15.c0;
        if (r3 != r2) goto L_0x059e;
    L_0x0570:
        r3 = r15.H;
        r3 = r3.f;
        if (r3 == 0) goto L_0x0593;
    L_0x0576:
        r14.d(r1, r13, r0, r2);
        r0 = r15.H;
        r0 = r0.f;
        r0 = r14.l(r0);
        r14.d(r1, r0, r10, r2);
        if (r28 == 0) goto L_0x0590;
    L_0x0586:
        r0 = r15.G;
        r0 = r14.l(r0);
        r1 = 5;
        r14.f(r7, r0, r10, r1);
    L_0x0590:
        r27 = 0;
        goto L_0x05a0;
    L_0x0593:
        r3 = r15.c0;
        if (r3 != r2) goto L_0x059b;
    L_0x0597:
        r14.d(r1, r13, r10, r2);
        goto L_0x059e;
    L_0x059b:
        r14.d(r1, r13, r0, r2);
    L_0x059e:
        r27 = r38;
    L_0x05a0:
        r0 = r15.f;
        r5 = r0[r11];
        r0 = r15.O;
        r8 = r0[r11];
        r4 = r15.E;
        r3 = r15.G;
        r1 = r15.V;
        r2 = r15.Y;
        r10 = r15.w;
        r16 = r10[r11];
        r10 = r15.a0;
        r17 = 0;
        r0 = r0[r17];
        r11 = r48;
        if (r0 != r11) goto L_0x05c1;
    L_0x05be:
        r18 = 1;
        goto L_0x05c3;
    L_0x05c1:
        r18 = 0;
    L_0x05c3:
        r0 = r15.r;
        r24 = r0;
        r0 = r15.s;
        r25 = r0;
        r0 = r15.t;
        r26 = r0;
        r0 = r53;
        r20 = r1;
        r1 = r54;
        r21 = r2;
        r2 = 0;
        r11 = r3;
        r3 = r28;
        r22 = r4;
        r4 = r29;
        r17 = r10;
        r10 = r22;
        r28 = r12;
        r12 = r20;
        r29 = r13;
        r13 = r33;
        r14 = r21;
        r15 = r16;
        r16 = r17;
        r17 = r37;
        r19 = r30;
        r20 = r31;
        r21 = r39;
        r22 = r35;
        r23 = r36;
        r0.f(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23, r24, r25, r26, r27);
        goto L_0x0605;
    L_0x0601:
        r28 = r12;
        r29 = r13;
    L_0x0605:
        if (r34 == 0) goto L_0x0632;
    L_0x0607:
        r6 = 8;
        r7 = r53;
        r0 = r7.u;
        r1 = 1;
        if (r0 != r1) goto L_0x0620;
    L_0x0610:
        r5 = r7.v;
        r0 = r54;
        r1 = r28;
        r2 = r29;
        r3 = r32;
        r4 = r46;
        r0.h(r1, r2, r3, r4, r5, r6);
        goto L_0x0634;
    L_0x0620:
        r5 = r7.v;
        r6 = 8;
        r0 = r54;
        r1 = r32;
        r2 = r46;
        r3 = r28;
        r4 = r29;
        r0.h(r1, r2, r3, r4, r5, r6);
        goto L_0x0634;
    L_0x0632:
        r7 = r53;
    L_0x0634:
        r0 = r7.K;
        r0 = r0.g();
        if (r0 == 0) goto L_0x06cd;
    L_0x063c:
        r0 = r7.K;
        r0 = r0.f;
        r0 = r0.d;
        r1 = r7.x;
        r2 = 1119092736; // 0x42b40000 float:90.0 double:5.529052754E-315;
        r1 = r1 + r2;
        r1 = (double) r1;
        r1 = java.lang.Math.toRadians(r1);
        r1 = (float) r1;
        r2 = r7.K;
        r2 = r2.d();
        r3 = b.g.b.h.c.a.LEFT;
        r4 = r7.i(r3);
        r5 = r54;
        r9 = r5.l(r4);
        r4 = b.g.b.h.c.a.TOP;
        r6 = r7.i(r4);
        r11 = r5.l(r6);
        r6 = b.g.b.h.c.a.RIGHT;
        r8 = r7.i(r6);
        r16 = r5.l(r8);
        r8 = b.g.b.h.c.a.BOTTOM;
        r10 = r7.i(r8);
        r12 = r5.l(r10);
        r3 = r0.i(r3);
        r3 = r5.l(r3);
        r4 = r0.i(r4);
        r13 = r5.l(r4);
        r4 = r0.i(r6);
        r4 = r5.l(r4);
        r0 = r0.i(r8);
        r14 = r5.l(r0);
        r0 = r54.m();
        r6 = (double) r1;
        r17 = java.lang.Math.sin(r6);
        r1 = (double) r2;
        r55 = r3;
        r19 = r4;
        r3 = r17 * r1;
        r15 = (float) r3;
        r10 = r0;
        r10.g(r11, r12, r13, r14, r15);
        r5.c(r0);
        r0 = r54.m();
        r3 = java.lang.Math.cos(r6);
        r3 = r3 * r1;
        r13 = (float) r3;
        r8 = r0;
        r10 = r16;
        r11 = r55;
        r12 = r19;
        r8.g(r9, r10, r11, r12, r13);
        r5.c(r0);
    L_0x06cd:
        r1 = 0;
        r0 = r53;
        r0.h = r1;
        r0.i = r1;
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.g.b.h.d.d(b.g.b.d, boolean):void");
    }

    public boolean e() {
        return this.c0 != 8;
    }

    /* JADX WARNING: Removed duplicated region for block: B:156:0x0269  */
    /* JADX WARNING: Removed duplicated region for block: B:155:0x0265  */
    /* JADX WARNING: Removed duplicated region for block: B:289:0x046b  */
    /* JADX WARNING: Removed duplicated region for block: B:288:0x0464  */
    /* JADX WARNING: Removed duplicated region for block: B:291:0x0470  */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x036d  */
    /* JADX WARNING: Removed duplicated region for block: B:197:0x0324  */
    /* JADX WARNING: Removed duplicated region for block: B:223:0x03b7  */
    /* JADX WARNING: Removed duplicated region for block: B:212:0x0391  */
    /* JADX WARNING: Removed duplicated region for block: B:233:0x03cf  */
    /* JADX WARNING: Removed duplicated region for block: B:271:0x0433  */
    /* JADX WARNING: Removed duplicated region for block: B:265:0x0421  */
    /* JADX WARNING: Removed duplicated region for block: B:288:0x0464  */
    /* JADX WARNING: Removed duplicated region for block: B:289:0x046b  */
    /* JADX WARNING: Removed duplicated region for block: B:291:0x0470  */
    /* JADX WARNING: Removed duplicated region for block: B:192:0x0317 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:197:0x0324  */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x036d  */
    /* JADX WARNING: Removed duplicated region for block: B:208:0x0388  */
    /* JADX WARNING: Removed duplicated region for block: B:212:0x0391  */
    /* JADX WARNING: Removed duplicated region for block: B:223:0x03b7  */
    /* JADX WARNING: Removed duplicated region for block: B:225:0x03bb A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:233:0x03cf  */
    /* JADX WARNING: Removed duplicated region for block: B:265:0x0421  */
    /* JADX WARNING: Removed duplicated region for block: B:271:0x0433  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0436 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:289:0x046b  */
    /* JADX WARNING: Removed duplicated region for block: B:288:0x0464  */
    /* JADX WARNING: Removed duplicated region for block: B:291:0x0470  */
    /* JADX WARNING: Removed duplicated region for block: B:192:0x0317 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x036d  */
    /* JADX WARNING: Removed duplicated region for block: B:197:0x0324  */
    /* JADX WARNING: Removed duplicated region for block: B:208:0x0388  */
    /* JADX WARNING: Removed duplicated region for block: B:223:0x03b7  */
    /* JADX WARNING: Removed duplicated region for block: B:212:0x0391  */
    /* JADX WARNING: Removed duplicated region for block: B:225:0x03bb A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:233:0x03cf  */
    /* JADX WARNING: Removed duplicated region for block: B:271:0x0433  */
    /* JADX WARNING: Removed duplicated region for block: B:265:0x0421  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0436 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:288:0x0464  */
    /* JADX WARNING: Removed duplicated region for block: B:289:0x046b  */
    /* JADX WARNING: Removed duplicated region for block: B:291:0x0470  */
    /* JADX WARNING: Removed duplicated region for block: B:192:0x0317 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:197:0x0324  */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x036d  */
    /* JADX WARNING: Removed duplicated region for block: B:208:0x0388  */
    /* JADX WARNING: Removed duplicated region for block: B:212:0x0391  */
    /* JADX WARNING: Removed duplicated region for block: B:223:0x03b7  */
    /* JADX WARNING: Removed duplicated region for block: B:225:0x03bb A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:233:0x03cf  */
    /* JADX WARNING: Removed duplicated region for block: B:265:0x0421  */
    /* JADX WARNING: Removed duplicated region for block: B:271:0x0433  */
    /* JADX WARNING: Removed duplicated region for block: B:273:0x0436 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:289:0x046b  */
    /* JADX WARNING: Removed duplicated region for block: B:288:0x0464  */
    /* JADX WARNING: Removed duplicated region for block: B:291:0x0470  */
    /* JADX WARNING: Removed duplicated region for block: B:288:0x0464  */
    /* JADX WARNING: Removed duplicated region for block: B:289:0x046b  */
    /* JADX WARNING: Removed duplicated region for block: B:291:0x0470  */
    /* JADX WARNING: Removed duplicated region for block: B:293:0x0475  */
    /* JADX WARNING: Removed duplicated region for block: B:94:0x017b  */
    /* JADX WARNING: Removed duplicated region for block: B:304:0x049b  */
    /* JADX WARNING: Removed duplicated region for block: B:315:0x04bb  */
    /* JADX WARNING: Removed duplicated region for block: B:94:0x017b  */
    /* JADX WARNING: Removed duplicated region for block: B:293:0x0475  */
    /* JADX WARNING: Removed duplicated region for block: B:299:0x048f  */
    /* JADX WARNING: Removed duplicated region for block: B:304:0x049b  */
    /* JADX WARNING: Removed duplicated region for block: B:315:0x04bb  */
    /* JADX WARNING: Removed duplicated region for block: B:43:0x00b1  */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x0095  */
    /* JADX WARNING: Removed duplicated region for block: B:293:0x0475  */
    /* JADX WARNING: Removed duplicated region for block: B:94:0x017b  */
    /* JADX WARNING: Removed duplicated region for block: B:299:0x048f  */
    /* JADX WARNING: Removed duplicated region for block: B:304:0x049b  */
    /* JADX WARNING: Removed duplicated region for block: B:315:0x04bb  */
    /* JADX WARNING: Removed duplicated region for block: B:23:0x006f  */
    /* JADX WARNING: Removed duplicated region for block: B:22:0x006b  */
    /* JADX WARNING: Removed duplicated region for block: B:25:0x0073  */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x0095  */
    /* JADX WARNING: Removed duplicated region for block: B:43:0x00b1  */
    /* JADX WARNING: Removed duplicated region for block: B:94:0x017b  */
    /* JADX WARNING: Removed duplicated region for block: B:293:0x0475  */
    /* JADX WARNING: Removed duplicated region for block: B:299:0x048f  */
    /* JADX WARNING: Removed duplicated region for block: B:304:0x049b  */
    /* JADX WARNING: Removed duplicated region for block: B:315:0x04bb  */
    public final void f(b.g.b.d r31, boolean r32, boolean r33, boolean r34, boolean r35, b.g.b.g r36, b.g.b.g r37, b.g.b.h.d.a r38, boolean r39, b.g.b.h.c r40, b.g.b.h.c r41, int r42, int r43, int r44, int r45, float r46, boolean r47, boolean r48, boolean r49, boolean r50, boolean r51, int r52, int r53, int r54, int r55, float r56, boolean r57) {
        /*
        r30 = this;
        r0 = r30;
        r10 = r31;
        r11 = r36;
        r12 = r37;
        r13 = r40;
        r14 = r41;
        r15 = r44;
        r1 = r45;
        r2 = r53;
        r3 = r54;
        r4 = r55;
        r5 = b.g.b.h.c.a.BOTTOM;
        r9 = r10.l(r13);
        r8 = r10.l(r14);
        r6 = r13.f;
        r7 = r10.l(r6);
        r6 = r14.f;
        r6 = r10.l(r6);
        r22 = r40.g();
        r23 = r41.g();
        r12 = r0.K;
        r12 = r12.g();
        if (r23 == 0) goto L_0x003f;
    L_0x003c:
        r16 = r22 + 1;
        goto L_0x0041;
    L_0x003f:
        r16 = r22;
    L_0x0041:
        if (r12 == 0) goto L_0x0045;
    L_0x0043:
        r16 = r16 + 1;
    L_0x0045:
        r2 = r16;
        if (r47 == 0) goto L_0x004b;
    L_0x0049:
        r14 = 3;
        goto L_0x004d;
    L_0x004b:
        r14 = r52;
    L_0x004d:
        r11 = r38.ordinal();
        r24 = r6;
        r6 = 1;
        if (r11 == 0) goto L_0x0061;
    L_0x0056:
        if (r11 == r6) goto L_0x0061;
    L_0x0058:
        r6 = 2;
        if (r11 == r6) goto L_0x005c;
    L_0x005b:
        goto L_0x0061;
    L_0x005c:
        r6 = 4;
        if (r14 == r6) goto L_0x0062;
    L_0x005f:
        r11 = 1;
        goto L_0x0063;
    L_0x0061:
        r6 = 4;
    L_0x0062:
        r11 = 0;
    L_0x0063:
        r6 = r0.c0;
        r16 = r11;
        r11 = 8;
        if (r6 != r11) goto L_0x006f;
    L_0x006b:
        r6 = 0;
        r16 = 0;
        goto L_0x0071;
    L_0x006f:
        r6 = r43;
    L_0x0071:
        if (r57 == 0) goto L_0x008f;
    L_0x0073:
        if (r22 != 0) goto L_0x007f;
    L_0x0075:
        if (r23 != 0) goto L_0x007f;
    L_0x0077:
        if (r12 != 0) goto L_0x007f;
    L_0x0079:
        r11 = r42;
        r10.e(r9, r11);
        goto L_0x008f;
    L_0x007f:
        if (r22 == 0) goto L_0x008f;
    L_0x0081:
        if (r23 != 0) goto L_0x008f;
    L_0x0083:
        r11 = r40.d();
        r27 = r12;
        r12 = 8;
        r10.d(r9, r7, r11, r12);
        goto L_0x0093;
    L_0x008f:
        r27 = r12;
        r12 = 8;
    L_0x0093:
        if (r16 != 0) goto L_0x00b1;
    L_0x0095:
        if (r39 == 0) goto L_0x00aa;
    L_0x0097:
        r5 = 3;
        r11 = 0;
        r10.d(r8, r9, r11, r5);
        if (r15 <= 0) goto L_0x00a1;
    L_0x009e:
        r10.f(r8, r9, r15, r12);
    L_0x00a1:
        r6 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;
        if (r1 >= r6) goto L_0x00ae;
    L_0x00a6:
        r10.g(r8, r9, r1, r12);
        goto L_0x00ae;
    L_0x00aa:
        r5 = 3;
        r10.d(r8, r9, r6, r12);
    L_0x00ae:
        r1 = 3;
        goto L_0x011a;
    L_0x00b1:
        r1 = 3;
        r11 = 2;
        if (r2 == r11) goto L_0x00cd;
    L_0x00b5:
        if (r47 != 0) goto L_0x00cd;
    L_0x00b7:
        r11 = 1;
        if (r14 == r11) goto L_0x00bc;
    L_0x00ba:
        if (r14 != 0) goto L_0x00cd;
    L_0x00bc:
        r5 = java.lang.Math.max(r3, r6);
        if (r4 <= 0) goto L_0x00c6;
    L_0x00c2:
        r5 = java.lang.Math.min(r4, r5);
    L_0x00c6:
        r6 = 8;
        r10.d(r8, r9, r5, r6);
        goto L_0x0171;
    L_0x00cd:
        r11 = -2;
        if (r3 != r11) goto L_0x00d1;
    L_0x00d0:
        r3 = r6;
    L_0x00d1:
        if (r4 != r11) goto L_0x00d4;
    L_0x00d3:
        r4 = r6;
    L_0x00d4:
        if (r6 <= 0) goto L_0x00da;
    L_0x00d6:
        r11 = 1;
        if (r14 == r11) goto L_0x00da;
    L_0x00d9:
        r6 = 0;
    L_0x00da:
        if (r3 <= 0) goto L_0x00e5;
    L_0x00dc:
        r11 = 8;
        r10.f(r8, r9, r3, r11);
        r6 = java.lang.Math.max(r6, r3);
    L_0x00e5:
        if (r4 <= 0) goto L_0x00fe;
    L_0x00e7:
        if (r33 == 0) goto L_0x00ee;
    L_0x00e9:
        r11 = 1;
        if (r14 != r11) goto L_0x00ee;
    L_0x00ec:
        r11 = 0;
        goto L_0x00ef;
    L_0x00ee:
        r11 = 1;
    L_0x00ef:
        if (r11 == 0) goto L_0x00f7;
    L_0x00f1:
        r11 = 8;
        r10.g(r8, r9, r4, r11);
        goto L_0x00f9;
    L_0x00f7:
        r11 = 8;
    L_0x00f9:
        r6 = java.lang.Math.min(r6, r4);
        goto L_0x0100;
    L_0x00fe:
        r11 = 8;
    L_0x0100:
        r12 = 1;
        if (r14 != r12) goto L_0x011e;
    L_0x0103:
        if (r33 == 0) goto L_0x0109;
    L_0x0105:
        r10.d(r8, r9, r6, r11);
        goto L_0x011a;
    L_0x0109:
        if (r49 == 0) goto L_0x0113;
    L_0x010b:
        r5 = 5;
        r10.d(r8, r9, r6, r5);
        r10.g(r8, r9, r6, r11);
        goto L_0x011a;
    L_0x0113:
        r5 = 5;
        r10.d(r8, r9, r6, r5);
        r10.g(r8, r9, r6, r11);
    L_0x011a:
        r11 = r35;
        r12 = r3;
        goto L_0x0179;
    L_0x011e:
        r6 = 2;
        if (r14 != r6) goto L_0x0177;
    L_0x0121:
        r6 = r13.e;
        r11 = b.g.b.h.c.a.TOP;
        if (r6 == r11) goto L_0x0147;
    L_0x0127:
        if (r6 != r5) goto L_0x012a;
    L_0x0129:
        goto L_0x0147;
    L_0x012a:
        r5 = r0.P;
        r6 = b.g.b.h.c.a.LEFT;
        r5 = r5.i(r6);
        r5 = r10.l(r5);
        r6 = r0.P;
        r11 = b.g.b.h.c.a.RIGHT;
        r6 = r6.i(r11);
        r6 = r10.l(r6);
        r20 = r5;
        r19 = r6;
        goto L_0x015f;
    L_0x0147:
        r6 = r0.P;
        r6 = r6.i(r11);
        r6 = r10.l(r6);
        r11 = r0.P;
        r5 = r11.i(r5);
        r5 = r10.l(r5);
        r19 = r5;
        r20 = r6;
    L_0x015f:
        r5 = r31.m();
        r16 = r5;
        r17 = r8;
        r18 = r9;
        r21 = r56;
        r16.d(r17, r18, r19, r20, r21);
        r10.c(r5);
    L_0x0171:
        r11 = r35;
        r12 = r3;
        r16 = 0;
        goto L_0x0179;
    L_0x0177:
        r12 = r3;
        r11 = 1;
    L_0x0179:
        if (r57 == 0) goto L_0x0475;
    L_0x017b:
        if (r49 == 0) goto L_0x018c;
    L_0x017d:
        r1 = r36;
        r5 = r2;
        r3 = r8;
        r13 = r9;
        r35 = r11;
        r4 = 0;
        r6 = 2;
        r28 = 1;
        r2 = r37;
        goto L_0x0482;
    L_0x018c:
        if (r22 != 0) goto L_0x0193;
    L_0x018e:
        if (r23 != 0) goto L_0x0193;
    L_0x0190:
        if (r27 != 0) goto L_0x0193;
    L_0x0192:
        goto L_0x0197;
    L_0x0193:
        if (r22 == 0) goto L_0x019f;
    L_0x0195:
        if (r23 != 0) goto L_0x019f;
    L_0x0197:
        r3 = r8;
        r35 = r11;
        r1 = r24;
    L_0x019c:
        r4 = 0;
        goto L_0x0458;
    L_0x019f:
        if (r22 != 0) goto L_0x01ba;
    L_0x01a1:
        if (r23 == 0) goto L_0x01ba;
    L_0x01a3:
        r1 = r41.d();
        r1 = -r1;
        r6 = r24;
        r2 = 8;
        r10.d(r8, r6, r1, r2);
        if (r33 == 0) goto L_0x0452;
    L_0x01b1:
        r3 = r36;
        r1 = 5;
        r5 = 0;
        r10.f(r9, r3, r5, r1);
        goto L_0x0452;
    L_0x01ba:
        r3 = r36;
        r6 = r24;
        r5 = 0;
        if (r22 == 0) goto L_0x0452;
    L_0x01c1:
        if (r23 == 0) goto L_0x0452;
    L_0x01c3:
        r2 = r13.f;
        r2 = r2.d;
        r1 = r41;
        r13 = 3;
        r5 = r1.f;
        r5 = r5.d;
        r13 = r0.P;
        r17 = 6;
        if (r16 == 0) goto L_0x02c1;
    L_0x01d4:
        if (r14 != 0) goto L_0x0222;
    L_0x01d6:
        if (r4 != 0) goto L_0x01ff;
    L_0x01d8:
        if (r12 != 0) goto L_0x01ff;
    L_0x01da:
        r4 = r7.f;
        if (r4 == 0) goto L_0x01f4;
    L_0x01de:
        r4 = r6.f;
        if (r4 == 0) goto L_0x01f4;
    L_0x01e2:
        r2 = r40.d();
        r3 = 8;
        r10.d(r9, r7, r2, r3);
        r1 = r41.d();
        r1 = -r1;
        r10.d(r8, r6, r1, r3);
        return;
    L_0x01f4:
        r32 = 0;
        r18 = 0;
        r19 = 1;
        r20 = 8;
        r21 = 8;
        goto L_0x0209;
    L_0x01ff:
        r32 = 1;
        r18 = 1;
        r19 = 0;
        r20 = 5;
        r21 = 5;
    L_0x0209:
        r4 = r2 instanceof b.g.b.h.a;
        if (r4 != 0) goto L_0x0217;
    L_0x020d:
        r4 = r5 instanceof b.g.b.h.a;
        if (r4 == 0) goto L_0x0212;
    L_0x0211:
        goto L_0x0217;
    L_0x0212:
        r26 = r32;
        r4 = r21;
        goto L_0x021a;
    L_0x0217:
        r26 = r32;
        r4 = 4;
    L_0x021a:
        r15 = 1;
        r29 = r18;
        r18 = r14;
        r14 = r29;
        goto L_0x0271;
    L_0x0222:
        r15 = 1;
        if (r14 != r15) goto L_0x0231;
    L_0x0225:
        r18 = r14;
        r4 = 4;
        r14 = 1;
        r15 = 1;
        r19 = 0;
        r20 = 8;
    L_0x022e:
        r26 = 1;
        goto L_0x0271;
    L_0x0231:
        r15 = 3;
        if (r14 != r15) goto L_0x02b6;
    L_0x0234:
        r15 = r0.u;
        r18 = r14;
        r14 = -1;
        if (r15 != r14) goto L_0x0254;
    L_0x023b:
        if (r50 == 0) goto L_0x0243;
    L_0x023d:
        if (r33 == 0) goto L_0x0241;
    L_0x023f:
        r4 = 5;
        goto L_0x0245;
    L_0x0241:
        r4 = 4;
        goto L_0x0245;
    L_0x0243:
        r4 = 8;
    L_0x0245:
        r14 = r37;
        r15 = 1;
        r19 = 1;
        r20 = 1;
        r21 = 5;
        r22 = 8;
    L_0x0250:
        r26 = 1;
        goto L_0x0315;
    L_0x0254:
        if (r47 == 0) goto L_0x0280;
    L_0x0256:
        r14 = r53;
        r15 = 2;
        if (r14 == r15) goto L_0x0261;
    L_0x025b:
        r15 = 1;
        if (r14 != r15) goto L_0x025f;
    L_0x025e:
        goto L_0x0262;
    L_0x025f:
        r4 = 0;
        goto L_0x0263;
    L_0x0261:
        r15 = 1;
    L_0x0262:
        r4 = 1;
    L_0x0263:
        if (r4 != 0) goto L_0x0269;
    L_0x0265:
        r4 = 5;
        r14 = 8;
        goto L_0x026b;
    L_0x0269:
        r4 = 4;
        r14 = 5;
    L_0x026b:
        r20 = r14;
        r14 = 1;
        r19 = 1;
        goto L_0x022e;
    L_0x0271:
        r21 = r4;
        r22 = r20;
        r4 = 6;
        r20 = r19;
        r19 = r26;
        r26 = r14;
        r14 = r37;
        goto L_0x0315;
    L_0x0280:
        r15 = 1;
        if (r4 <= 0) goto L_0x028e;
    L_0x0283:
        r14 = r37;
        r4 = 1;
        r19 = 1;
        r20 = 1;
        r21 = 5;
        goto L_0x030e;
    L_0x028e:
        if (r4 != 0) goto L_0x02b2;
    L_0x0290:
        if (r12 != 0) goto L_0x02b2;
    L_0x0292:
        if (r50 != 0) goto L_0x029f;
    L_0x0294:
        r14 = r37;
        r4 = 1;
        r19 = 1;
        r20 = 1;
        r21 = 8;
        goto L_0x030e;
    L_0x029f:
        if (r2 == r13) goto L_0x02a5;
    L_0x02a1:
        if (r5 == r13) goto L_0x02a5;
    L_0x02a3:
        r4 = 4;
        goto L_0x02a6;
    L_0x02a5:
        r4 = 5;
    L_0x02a6:
        r14 = r37;
        r22 = r4;
        r4 = 6;
        r19 = 1;
        r20 = 1;
        r21 = 4;
        goto L_0x0250;
    L_0x02b2:
        r14 = r37;
        r4 = 1;
        goto L_0x0307;
    L_0x02b6:
        r18 = r14;
        r15 = 1;
        r14 = r37;
        r4 = 0;
        r19 = 0;
        r20 = 0;
        goto L_0x030c;
    L_0x02c1:
        r18 = r14;
        r15 = 1;
        r4 = r7.f;
        if (r4 == 0) goto L_0x0304;
    L_0x02c8:
        r4 = r6.f;
        if (r4 == 0) goto L_0x0304;
    L_0x02cc:
        r2 = r40.d();
        r3 = r41.d();
        r4 = 8;
        r47 = r31;
        r48 = r9;
        r49 = r7;
        r50 = r2;
        r51 = r46;
        r52 = r6;
        r53 = r8;
        r54 = r3;
        r55 = r4;
        r47.b(r48, r49, r50, r51, r52, r53, r54, r55);
        if (r33 == 0) goto L_0x0303;
    L_0x02ed:
        if (r11 == 0) goto L_0x0303;
    L_0x02ef:
        r2 = r1.f;
        if (r2 == 0) goto L_0x02fa;
    L_0x02f3:
        r1 = r41.d();
        r14 = r37;
        goto L_0x02fd;
    L_0x02fa:
        r14 = r37;
        r1 = 0;
    L_0x02fd:
        if (r6 == r14) goto L_0x0303;
    L_0x02ff:
        r2 = 5;
        r10.f(r14, r8, r1, r2);
    L_0x0303:
        return;
    L_0x0304:
        r14 = r37;
        r4 = 0;
    L_0x0307:
        r20 = r4;
        r4 = 1;
        r19 = 1;
    L_0x030c:
        r21 = 4;
    L_0x030e:
        r26 = r19;
        r22 = 5;
        r19 = r4;
        r4 = 6;
    L_0x0315:
        if (r26 == 0) goto L_0x0320;
    L_0x0317:
        if (r7 != r6) goto L_0x0320;
    L_0x0319:
        if (r2 == r13) goto L_0x0320;
    L_0x031b:
        r23 = 0;
        r26 = 0;
        goto L_0x0322;
    L_0x0320:
        r23 = 1;
    L_0x0322:
        if (r19 == 0) goto L_0x036d;
    L_0x0324:
        if (r16 != 0) goto L_0x0337;
    L_0x0326:
        if (r48 != 0) goto L_0x0337;
    L_0x0328:
        if (r50 != 0) goto L_0x0337;
    L_0x032a:
        if (r7 != r3) goto L_0x0337;
    L_0x032c:
        if (r6 != r14) goto L_0x0337;
    L_0x032e:
        r19 = 0;
        r22 = 8;
        r23 = 0;
        r24 = 8;
        goto L_0x033d;
    L_0x0337:
        r19 = r33;
        r24 = r22;
        r22 = r4;
    L_0x033d:
        r4 = r40.d();
        r27 = r41.d();
        r15 = r1;
        r1 = r31;
        r14 = r2;
        r2 = r9;
        r15 = r3;
        r3 = r7;
        r35 = r11;
        r25 = 0;
        r11 = r5;
        r5 = r46;
        r32 = r6;
        r25 = 4;
        r28 = 1;
        r38 = r12;
        r12 = r7;
        r7 = r8;
        r15 = r8;
        r8 = r27;
        r27 = r13;
        r13 = r9;
        r9 = r22;
        r1.b(r2, r3, r4, r5, r6, r7, r8, r9);
        r6 = r23;
        r22 = r24;
        goto L_0x0382;
    L_0x036d:
        r14 = r2;
        r32 = r6;
        r15 = r8;
        r35 = r11;
        r38 = r12;
        r27 = r13;
        r25 = 4;
        r28 = 1;
        r11 = r5;
        r12 = r7;
        r13 = r9;
        r19 = r33;
        r6 = r23;
    L_0x0382:
        r1 = r0.c0;
        r2 = 8;
        if (r1 != r2) goto L_0x038f;
    L_0x0388:
        r1 = r41.f();
        if (r1 != 0) goto L_0x038f;
    L_0x038e:
        return;
    L_0x038f:
        if (r26 == 0) goto L_0x03b7;
    L_0x0391:
        r1 = r32;
        if (r19 == 0) goto L_0x03a3;
    L_0x0395:
        if (r12 == r1) goto L_0x03a3;
    L_0x0397:
        if (r16 != 0) goto L_0x03a3;
    L_0x0399:
        r2 = r14 instanceof b.g.b.h.a;
        if (r2 != 0) goto L_0x03a1;
    L_0x039d:
        r2 = r11 instanceof b.g.b.h.a;
        if (r2 == 0) goto L_0x03a3;
    L_0x03a1:
        r2 = 6;
        goto L_0x03a5;
    L_0x03a3:
        r2 = r22;
    L_0x03a5:
        r3 = r40.d();
        r10.f(r13, r12, r3, r2);
        r3 = r41.d();
        r3 = -r3;
        r10.g(r15, r1, r3, r2);
        r22 = r2;
        goto L_0x03b9;
    L_0x03b7:
        r1 = r32;
    L_0x03b9:
        if (r19 == 0) goto L_0x03c9;
    L_0x03bb:
        if (r51 == 0) goto L_0x03c9;
    L_0x03bd:
        r2 = r14 instanceof b.g.b.h.a;
        if (r2 != 0) goto L_0x03c9;
    L_0x03c1:
        r2 = r11 instanceof b.g.b.h.a;
        if (r2 != 0) goto L_0x03c9;
    L_0x03c5:
        r2 = 6;
        r3 = 6;
        r6 = 1;
        goto L_0x03cd;
    L_0x03c9:
        r2 = r21;
        r3 = r22;
    L_0x03cd:
        if (r6 == 0) goto L_0x041f;
    L_0x03cf:
        if (r20 == 0) goto L_0x03fd;
    L_0x03d1:
        if (r50 == 0) goto L_0x03d5;
    L_0x03d3:
        if (r34 == 0) goto L_0x03fd;
    L_0x03d5:
        r4 = r27;
        if (r14 == r4) goto L_0x03de;
    L_0x03d9:
        if (r11 != r4) goto L_0x03dc;
    L_0x03db:
        goto L_0x03de;
    L_0x03dc:
        r17 = r2;
    L_0x03de:
        r5 = r14 instanceof b.g.b.h.f;
        if (r5 != 0) goto L_0x03e6;
    L_0x03e2:
        r5 = r11 instanceof b.g.b.h.f;
        if (r5 == 0) goto L_0x03e8;
    L_0x03e6:
        r17 = 5;
    L_0x03e8:
        r5 = r14 instanceof b.g.b.h.a;
        if (r5 != 0) goto L_0x03f0;
    L_0x03ec:
        r5 = r11 instanceof b.g.b.h.a;
        if (r5 == 0) goto L_0x03f2;
    L_0x03f0:
        r17 = 5;
    L_0x03f2:
        if (r50 == 0) goto L_0x03f6;
    L_0x03f4:
        r5 = 5;
        goto L_0x03f8;
    L_0x03f6:
        r5 = r17;
    L_0x03f8:
        r2 = java.lang.Math.max(r5, r2);
        goto L_0x03ff;
    L_0x03fd:
        r4 = r27;
    L_0x03ff:
        if (r19 == 0) goto L_0x040f;
    L_0x0401:
        r2 = java.lang.Math.min(r3, r2);
        if (r47 == 0) goto L_0x040f;
    L_0x0407:
        if (r50 != 0) goto L_0x040f;
    L_0x0409:
        if (r14 == r4) goto L_0x040d;
    L_0x040b:
        if (r11 != r4) goto L_0x040f;
    L_0x040d:
        r6 = 4;
        goto L_0x0410;
    L_0x040f:
        r6 = r2;
    L_0x0410:
        r2 = r40.d();
        r10.d(r13, r12, r2, r6);
        r2 = r41.d();
        r2 = -r2;
        r10.d(r15, r1, r2, r6);
    L_0x041f:
        if (r19 == 0) goto L_0x0433;
    L_0x0421:
        r2 = r36;
        r3 = r15;
        if (r2 != r12) goto L_0x042b;
    L_0x0426:
        r6 = r40.d();
        goto L_0x042c;
    L_0x042b:
        r6 = 0;
    L_0x042c:
        if (r12 == r2) goto L_0x0434;
    L_0x042e:
        r4 = 5;
        r10.f(r13, r2, r6, r4);
        goto L_0x0434;
    L_0x0433:
        r3 = r15;
    L_0x0434:
        if (r19 == 0) goto L_0x0450;
    L_0x0436:
        if (r16 == 0) goto L_0x0450;
    L_0x0438:
        if (r44 != 0) goto L_0x0450;
    L_0x043a:
        if (r38 != 0) goto L_0x0450;
    L_0x043c:
        if (r16 == 0) goto L_0x044a;
    L_0x043e:
        r14 = r18;
        r2 = 3;
        if (r14 != r2) goto L_0x044a;
    L_0x0443:
        r2 = 8;
        r4 = 0;
        r10.f(r3, r13, r4, r2);
        goto L_0x045a;
    L_0x044a:
        r4 = 0;
        r2 = 5;
        r10.f(r3, r13, r4, r2);
        goto L_0x045a;
    L_0x0450:
        r4 = 0;
        goto L_0x045a;
    L_0x0452:
        r1 = r6;
        r3 = r8;
        r35 = r11;
        goto L_0x019c;
    L_0x0458:
        r19 = r33;
    L_0x045a:
        if (r19 == 0) goto L_0x0474;
    L_0x045c:
        if (r35 == 0) goto L_0x0474;
    L_0x045e:
        r2 = r41;
        r5 = r2.f;
        if (r5 == 0) goto L_0x046b;
    L_0x0464:
        r6 = r41.d();
        r2 = r37;
        goto L_0x046e;
    L_0x046b:
        r2 = r37;
        r6 = 0;
    L_0x046e:
        if (r1 == r2) goto L_0x0474;
    L_0x0470:
        r1 = 5;
        r10.f(r2, r3, r6, r1);
    L_0x0474:
        return;
    L_0x0475:
        r1 = r36;
        r5 = r2;
        r3 = r8;
        r13 = r9;
        r35 = r11;
        r4 = 0;
        r28 = 1;
        r2 = r37;
        r6 = 2;
    L_0x0482:
        if (r5 >= r6) goto L_0x04c0;
    L_0x0484:
        if (r33 == 0) goto L_0x04c0;
    L_0x0486:
        if (r35 == 0) goto L_0x04c0;
    L_0x0488:
        r5 = 8;
        r10.f(r13, r1, r4, r5);
        if (r32 != 0) goto L_0x0498;
    L_0x048f:
        r1 = r0.H;
        r1 = r1.f;
        if (r1 != 0) goto L_0x0496;
    L_0x0495:
        goto L_0x0498;
    L_0x0496:
        r6 = 0;
        goto L_0x0499;
    L_0x0498:
        r6 = 1;
    L_0x0499:
        if (r32 != 0) goto L_0x04b9;
    L_0x049b:
        r1 = r0.H;
        r1 = r1.f;
        if (r1 == 0) goto L_0x04b9;
    L_0x04a1:
        r1 = r1.d;
        r5 = r1.S;
        r6 = 0;
        r5 = (r5 > r6 ? 1 : (r5 == r6 ? 0 : -1));
        if (r5 == 0) goto L_0x04b8;
    L_0x04aa:
        r1 = r1.O;
        r5 = r1[r4];
        r6 = b.g.b.h.d.a.MATCH_CONSTRAINT;
        if (r5 != r6) goto L_0x04b8;
    L_0x04b2:
        r1 = r1[r28];
        if (r1 != r6) goto L_0x04b8;
    L_0x04b6:
        r6 = 1;
        goto L_0x04b9;
    L_0x04b8:
        r6 = 0;
    L_0x04b9:
        if (r6 == 0) goto L_0x04c0;
    L_0x04bb:
        r1 = 8;
        r10.f(r2, r3, r4, r1);
    L_0x04c0:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.g.b.h.d.f(b.g.b.d, boolean, boolean, boolean, boolean, b.g.b.g, b.g.b.g, b.g.b.h.d$a, boolean, b.g.b.h.c, b.g.b.h.c, int, int, int, int, float, boolean, boolean, boolean, boolean, boolean, int, int, int, int, float, boolean):void");
    }

    public void g(b.g.b.d dVar) {
        dVar.l(this.D);
        dVar.l(this.E);
        dVar.l(this.F);
        dVar.l(this.G);
        if (this.W > 0) {
            dVar.l(this.H);
        }
    }

    public void h() {
        if (this.d == null) {
            this.d = new k(this);
        }
        if (this.e == null) {
            this.e = new m(this);
        }
    }

    public c i(b.g.b.h.c.a aVar) {
        switch (aVar.ordinal()) {
            case 0:
                return null;
            case 1:
                return this.D;
            case 2:
                return this.E;
            case 3:
                return this.F;
            case 4:
                return this.G;
            case 5:
                return this.H;
            case 6:
                return this.K;
            case 7:
                return this.I;
            case 8:
                return this.J;
            default:
                throw new AssertionError(aVar.name());
        }
    }

    public int j() {
        return t() + this.R;
    }

    public a k(int i) {
        if (i == 0) {
            return m();
        }
        return i == 1 ? q() : null;
    }

    public int l() {
        if (this.c0 == 8) {
            return 0;
        }
        return this.R;
    }

    public a m() {
        return this.O[0];
    }

    public d n(int i) {
        c cVar;
        c cVar2;
        if (i == 0) {
            cVar = this.F;
            cVar2 = cVar.f;
            if (cVar2 != null && cVar2.f == cVar) {
                return cVar2.d;
            }
        } else if (i == 1) {
            cVar = this.G;
            cVar2 = cVar.f;
            if (cVar2 != null && cVar2.f == cVar) {
                return cVar2.d;
            }
        }
        return null;
    }

    public d o(int i) {
        c cVar;
        c cVar2;
        if (i == 0) {
            cVar = this.D;
            cVar2 = cVar.f;
            if (cVar2 != null && cVar2.f == cVar) {
                return cVar2.d;
            }
        } else if (i == 1) {
            cVar = this.E;
            cVar2 = cVar.f;
            if (cVar2 != null && cVar2.f == cVar) {
                return cVar2.d;
            }
        }
        return null;
    }

    public int p() {
        return s() + this.Q;
    }

    public a q() {
        return this.O[1];
    }

    public int r() {
        if (this.c0 == 8) {
            return 0;
        }
        return this.Q;
    }

    public int s() {
        d dVar = this.P;
        if (dVar == null || !(dVar instanceof e)) {
            return this.U;
        }
        return ((e) dVar).r0 + this.U;
    }

    public int t() {
        d dVar = this.P;
        if (dVar == null || !(dVar instanceof e)) {
            return this.V;
        }
        return ((e) dVar).s0 + this.V;
    }

    public String toString() {
        String str = "";
        StringBuilder g = c.b.a.a.a.g(str);
        if (this.d0 != null) {
            str = c.b.a.a.a.d(c.b.a.a.a.g("id: "), this.d0, " ");
        }
        g.append(str);
        g.append("(");
        g.append(this.U);
        g.append(", ");
        g.append(this.V);
        g.append(") - (");
        g.append(this.Q);
        g.append(" x ");
        return c.b.a.a.a.c(g, this.R, ")");
    }

    public boolean u(int i) {
        boolean z = true;
        if (i == 0) {
            if ((this.D.f != null ? 1 : 0) + (this.F.f != null ? 1 : 0) >= 2) {
                z = false;
            }
            return z;
        }
        if (((this.E.f != null ? 1 : 0) + (this.G.f != null ? 1 : 0)) + (this.H.f != null ? 1 : 0) >= 2) {
            z = false;
        }
        return z;
    }

    public final boolean v(int i) {
        i *= 2;
        c[] cVarArr = this.L;
        if (!(cVarArr[i].f == null || cVarArr[i].f.f == cVarArr[i])) {
            i++;
            if (cVarArr[i].f != null && cVarArr[i].f.f == cVarArr[i]) {
                return true;
            }
        }
        return false;
    }

    public boolean w() {
        c cVar = this.D;
        c cVar2 = cVar.f;
        if (cVar2 == null || cVar2.f != cVar) {
            cVar = this.F;
            cVar2 = cVar.f;
            if (cVar2 == null || cVar2.f != cVar) {
                return false;
            }
        }
        return true;
    }

    public boolean x() {
        c cVar = this.E;
        c cVar2 = cVar.f;
        if (cVar2 == null || cVar2.f != cVar) {
            cVar = this.G;
            cVar2 = cVar.f;
            if (cVar2 == null || cVar2.f != cVar) {
                return false;
            }
        }
        return true;
    }

    public boolean y() {
        return this.g && this.c0 != 8;
    }

    public boolean z() {
        return this.h || (this.D.c && this.F.c);
    }
}
